package org.vineatoum.etats;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.vineatoum.bo.Plantation;


public class Recolte extends VinAbstract {
	private static Set<Recolte> recoltes = new HashSet<Recolte>();
	
	Plantation plantation;
	
	Date date;
	int pourcentage;
	String commentaire;
	String type;
	
	public Recolte(Plantation plantation) {
		this.plantation = plantation;
	}
	
	public Recolte(Plantation plantation, String benneId) {
		this.plantation = plantation;
	}
	
	public Recolte(Plantation plantation, Benne benne) {
		this.plantation = plantation;
	}
	
	@Override
	public void getTracking() {
		System.out.println(this);
		plantation.getTracking();
	}
	
	@Override
	public String toString() {
		String out = "Recolte de la plantation " + plantation.toString() + "\n";

		return out;
	}

	public static Set<Recolte> getCollection() {
		return recoltes;
	}

}
